﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MS.Enums.Common
{
    public enum Passformat
    {
        /// <summary>
        /// 明文
        /// </summary>
        [Description("明文")]
        Plaintext = 0,
        /// <summary>
        /// 加密
        /// </summary>
        [Description("加密")]
        Encrypt = 1
    }


    public enum YesNo
    {
        [Description("是")]
        Yes = 1,
        [Description("否")]
        No = 0,
    }

    /// <summary>
    /// 数据库读写分离枚举
    /// </summary>
    public enum WriteRead
    {
        [Description("写")]
        Write = 1,
        [Description("读")]
        Read = 2
    }

    /// <summary>
    /// 登录函数返回结果枚举
    /// </summary>
    public enum LoginResult
    {
        /// <summary>
        /// 登录成功
        /// </summary>
        [Description("登录成功")]
        Success = 0,
        /// <summary>
        /// 用户名或密码错误
        /// </summary>
        [Description("用户名或密码错误")]
        Fail = 1,
        /// <summary>
        /// 非法登录
        /// </summary>
        [Description("非法登录")]
        IllegalLogin = 2
    }

    /// <summary>
    /// 通用状态枚举
    /// </summary>
    public enum Status
    {
        [Description("正常")]
        Normal = 0,
        [Description("删除")]
        Delete = -1,
    }
    /// <summary>
    /// 用户状态枚举
    /// </summary>
    public enum UserStatus
    {
        /// <summary>
        /// 正常
        /// </summary>
        [Description("正常")]
        Normal = 0,
        /// <summary>
        /// 删除
        /// </summary>
        [Description("删除")]
        Delete = -1,
        /// <summary>
        /// 停用
        /// </summary>
        [Description("停用")]
        Stop = 1,
    }
    /// <summary>
    /// 角色状态
    /// </summary>
    public enum RoleStatus
    {
        /// <summary>
        /// 正常（启用
        /// </summary>
        [Description("启用")]
        Normal = 0,
        /// <summary>
        /// 删除
        /// </summary>
        [Description("删除")]
        Delete = -1,
        /// <summary>
        /// 停用
        /// </summary>
        [Description("停用")]
        Stop = 1,
    }

    /// <summary>
    /// 平台枚举
    /// </summary>
    public enum Platform
    {
        [Description("后台")]
        BMS = 1,
    }
    /// <summary>
    /// 功能菜单类型 0菜单 1功能
    /// </summary>
    public enum FunctionType
    {
        [Description("菜单")]
        Menu = 0,
        [Description("功能")]
        Function = 1
    }
    /// <summary>
    /// 移动方式
    /// </summary>
    public enum MoveWay
    {
        Up = 1,
        Down = 2
    }
    /// <summary>
    /// 性别
    /// </summary>
    public enum Gender
    {
        [Description("未知")]
        None = 0,
        [Description("男")]
        Man = 1,
        [Description("女")]
        Woman = 2
    }
}
